package com.tdu.sp1;

import org.springframework.stereotype.Component;

/**
 * @Component 标识该类为spring的组件，spring framework会为该类创建对象
 */

@Component
public class spring1 {

    public void eat() {
        System.out.println("鲁康宁在吃饭");
    }
}
